---@diagnostic disable: lowercase-global, undefined-global, trailing-space

GLOBAL.setmetatable(env,{__index=function(t,k) return GLOBAL.rawget(GLOBAL,k) end})

---@type string
local modid = 'alpha_rts' -- 定义唯一modid


---@type LAN_TOOL_COORDS
C_ALPHA_RTS = require('core_'..modid..'/utils/coords')
---@type LAN_TOOL_SUGARS
S_ALPHA_RTS = require('core_'..modid..'/utils/sugar')
---@type LAN_TOOL_UNIQUE
U_ALPHA_RTS = require('core_'..modid..'/utils/unique')

rawset(GLOBAL,'C_ALPHA_RTS',C_ALPHA_RTS)
rawset(GLOBAL,'S_ALPHA_RTS',S_ALPHA_RTS)
rawset(GLOBAL,'U_ALPHA_RTS',U_ALPHA_RTS)

PrefabFiles = {
	-- 'alpha_rts_module_buffs',
	-- 'alpha_rts_module_dishes',
	-- 'alpha_rts_module_particle',
	'fx_alpha_rts_line',
	'fx_alpha_rts_circle',

}

---@type asset[]
Assets = {

}
-- 导入常量表
modimport('scripts/core_'..modid..'/data/tuning.lua')

-- 导入工具
modimport('scripts/core_'..modid..'/utils/_register.lua')

-- 导入功能API
modimport('scripts/core_'..modid..'/api/_register.lua')

-- 导入mod配置
TUNING[string.upper('CONFIG_'..modid..'_LANG')] = GetModConfigData(modid..'_lang')

-- 导入语言文件
modimport('scripts/core_'..modid..'/languages/'..TUNING[string.upper('CONFIG_'..modid..'_LANG')]..'.lua')

-- 导入人物
-- modimport('scripts/data_avatar/data_avatar_xxx.lua')

-- 导入调用器
modimport('scripts/core_'..modid..'/callers/caller_attackperiod.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_badge.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_ca.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_changeactionsg.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_container.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_dish.lua')
modimport('scripts/core_'..modid..'/callers/caller_keyhandler.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_onlyusedby.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_recipes.lua')
-- modimport('scripts/core_'..modid..'/callers/caller_stack.lua')


-- 导入UI

-- 注册客机组件

-- 导入钩子
---@type string[]
local files_hook = {
	'dont_sleep',
}
for _,v in ipairs(files_hook) do
	modimport('scripts/core_'..modid..'/hooks/'..v..'.lua')
end

-- 
for _,v in ipairs({
	'main/mouse_select_rpc', -- 鼠标框选实现
	'main/select_handle_tools', -- 框选单位动作处理器 工具
	'main/select_handler', -- 框选单位 动作处理器
	'main/select_move', -- 框选单位 动作
}) do
	modimport('scripts/core_'..modid..'/'..v..'.lua')
end